-- SCBuffAction
-- create by chendh
-- 附件状态动作

SCBuffAction = class("SCBuffAction", function()
    return ActionBase.create();
end);

function SCBuffAction.create(source, skillId, effect)
    local self = SCBuffAction.new();
    self.source = source;
    self.effect = effect;
    self.skillId = skillId;
    return self;
end

-- 构造函数
function SCBuffAction:ctor()
end

-- 开始播放
function SCBuffAction:play()
    EventMgr.fire(event.SKY_COMBAT_BUFF, {
        ["source"] = self.source,
        ["skillId"] = self.skillId,
        ["effect"] = self.effect
    });

    return 0;
end

return SCBuffAction;